using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for csLogin
/// </summary>
/// 
namespace AccesoDatos
{
    public class clsLogin
    {
        //variables
        private string _stringConexion = ConfigurationManager.ConnectionStrings["SQL"].ToString();
        
        public clsLogin()
        {
            //
            // TODO: Add constructor logic here
            //
        }

        public DataSet IniciarSesion(string login, string password)
        {
            return SqlHelper.ExecuteDataset(_stringConexion, "spLogin", login, password);
        }

        public DataSet MenuInicial()
        {
            return SqlHelper.ExecuteDataset(_stringConexion, "spObtenerMenuInicial");
        }

        public DataSet MenuHijos(string id_menu)
        {
            return SqlHelper.ExecuteDataset(_stringConexion, "spObtenerMenuHijos", id_menu);
        }

    }
}